package com.lagou.ipersistence.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author Yan Jiahong
 * Created on 2020/11/21
 */
public interface TypeHandler<T> {
    void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException;
    
    T getResult(ResultSet rs, String columnName) throws SQLException;
    
//    T getResult(ResultSet rs, int colIndex) throws SQLException;
}
